﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Head.ascx.cs" Inherits="WebSite.UserControl.Head" %>

<div class="head">
 <div class="head_c">
     <input id="hidserverpath" type="hidden" value='<%=serverpath %>'/>
 <a href='<%=serverpath %>/Index.aspx' target="_self"><img alt="" src="../images/logo.jpg" /></a>
 <p>
<a href='<%=serverpath %>/Index.aspx' target="_self">首页</a>|
<a href='<%=serverpath %>/IndexOn.aspx' target="_self">我的关注</a>
</p>

<ul style="float:left;margin-left:100px">
<li><a href='<%=serverpath %>/TextList.aspx' target="_self"><font color="#61B3DB">图文</font></a></li>
<li><a href='<%=serverpath %>/VideoList.aspx' target="_self"><font color="#FEA549">视频</font></a></li>
<li><a href='<%=serverpath %>/MP3List.aspx' target="_self"><font color="#2E963D">MP3</font></a></li>
<li><a href='<%=serverpath %>/CList.aspx' target="_self"><font color="#000000">小组</font></a></li>
<li><a href='<%=serverpath %>/UList.aspx' target="_self"><font color="Red">达人</font></a></li>
</ul>
<ul id="login" runat="server"><li>欢迎来到友赢网&nbsp;&nbsp;&nbsp;&nbsp;|</li><li><a href="javascript:void(0);" onclick="onlogin();return false;" style="color:Red">登录</a>|</li><li><a href="javascript:void(0);" onclick="onregister();return false;" style="color:Red">10秒注册</a>|</li><li><a href='<%=serverpath %>/help/help.aspx' target="_blank">如何玩转</a></li></ul>
<ul id="loggedin" runat="server"><li>你好，<tt><asp:Literal ID="litNickName" runat="server"></asp:Literal></tt>&nbsp;(<asp:Label ID="lblRoleName" runat="server" ForeColor="Red"></asp:Label>)&nbsp;<a href='<%=serverpath %>/UserSetting/MessageList.aspx?from=1' target="_self"><tt>新消息:<asp:Label ID="lblMessageCount" runat="server" Text="0" ForeColor="Red"></asp:Label>条</tt></a></li>|<li><a href='<%=serverpath %>/UserSetting/Index.aspx' target="_self"><font color="red">个人中心</font></a>&nbsp;<a href='<%=serverpath %>/UserSetting/GoldCoffer.aspx' target="_self"><font color="blue">小金库</font></a></li>|<li class="bor-no">
    <asp:LinkButton ID="lbLogOut" runat="server" onclick="lbLogOut_Click">退出</asp:LinkButton></li></ul>
</div>
</div>

<script language="javascript" type="text/javascript">
    function onlogin()
    {
        var hidserverpath = document.getElementById("hidserverpath");
        var serverpath = hidserverpath.value;
        //var returnurl = window.location.url;
        var returnurl = document.URL;
        var url = serverpath + '/Login.aspx?returnurl=' + returnurl;
        window.location.href=url;
    }

    function onregister()
    {
        var hidserverpath = document.getElementById("hidserverpath");
        var serverpath = hidserverpath.value;
        //var returnurl = window.location.url;
        var returnurl = document.URL;
        var url = serverpath + '/Register.aspx?returnurl=' + returnurl;
        window.location.href=url;
    }
</script>